package com.gpzx.zx.module.home.ui.fragment

import android.content.Context
import android.os.Bundle
import android.view.View
import com.gpzx.zx.R
import com.gpzx.zx.databinding.FragmentAuthorListBinding
import com.gpzx.zx.databinding.FragmentNews24Binding
import com.gpzx.zx.module.home.frame.presenter.AuthorListPresenter
import com.gpzx.zx.module.home.frame.presenter.News24Presenter
import com.gpzx.zx.module.home.frame.view.AuthorListView
import com.gpzx.zx.module.home.frame.view.News24View
import com.wkq.base.frame.fragment.MvpBindingFragment

/**
 * 作者: 吴奎庆
 *
 * 时间: 2020/7/15
 *
 * 简介:
 */
class News24Fragment : MvpBindingFragment<News24View, News24Presenter, FragmentNews24Binding>() {

    companion object {

        fun newInstance(): News24Fragment {
            var bandle: Bundle = Bundle()
            var home: News24Fragment = News24Fragment()
            home.arguments = bandle
            return home
        }

    }

    override fun getLayoutId(): Int {
        return R.layout.fragment_news_24
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        if(mvpView!=null)mvpView.initView()
        if(presenter!=null)presenter.getData(activity as Context)
    }
}